Skip to content

Custom CSS Generation#3

Merged
akoenig merged 2 commits intoakoenig:masterfrom
juice49:custom-css
Aug 13, 2014
Merged

Custom CSS Generation#3
akoenig merged 2 commits intoakoenig:masterfrom
juice49:custom-css

Conversation

@juice49
Copy link

@juice49 juice49 commented May 14, 2014

This PR enables a function to be passed instead of the namespace string, allowing a custom CSS rule set to be created.

The image object is passed to the user's function, which must return a CSS rule set.

I think this is very useful functionality, for example to provide a fallback for SVG's.

Thanks!
Ash

@enapupe
Copy link
Contributor

enapupe commented Aug 11, 2014

+1!
I would like to prefix my images with their file extensions, also, I don't like the obligatory double class selector.

akoenig pushed a commit that referenced this pull request Aug 13, 2014
@akoenig akoenig merged commit c1e3530 into akoenig:master Aug 13, 2014
@akoenig
Copy link
Owner

akoenig commented Aug 13, 2014

Awesome feature! Thanks for contributing this.

/André

@juice49
Copy link
Author

juice49 commented Aug 13, 2014

Happy to be of assistance! (:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants